package com.pansoft.newasset.adapter;

import android.content.Context;
import android.widget.LinearLayout;

import com.efounder.recycleviewhelper.CommonAdapter;
import com.efounder.recycleviewhelper.base.ViewHolder;
import com.pansoft.openplanet.R;

import java.util.List;

/**
 * @autor yqs
 * @date 2019/2/3 8:51
 **/
public class NewAssetMain2Adapter extends CommonAdapter {
    private Context mContext;
    private List datas;
    private LinearLayout parentView;

    public NewAssetMain2Adapter(Context context, int layoutId, List datas) {
        super(context, layoutId, datas);
        this.mContext = context;
        this.datas = datas;
    }

    @Override
    protected void convert(ViewHolder holder, Object o, int position) {
         LinearLayout llContain;
        llContain = (LinearLayout) holder.getView(R.id.ll_contain);
        parentView =llContain;

    }

public  void refreshData(){
//      if (parentView!=null){
//          ((NewAssetTotalFragment)getChildFragmentManager().findFragmentById(R.id.fragment_asset)).refreshData();
//
//          parentView.getChildFragmentManager()
//      }
}
}
